package com.Tradition.model;

import java.util.Date;

public class User {
    private Integer id;

    private String username;

    private String password;

    private Date createtime;

    private Date logintime;

    private Integer status;
    public User(){

    }
    public User(Integer id, String username, String password, Date createtime, Date logintime, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.createtime = createtime;
        this.logintime = logintime;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public User withUsername(String username){
        this.username=username;
        return this;
    }
    public User withPassword(String passowrd){
        this.password=passowrd;
        return this;
    }
}